import Base from "./base";

class DeepOptimal { }

class SchedulePrice extends Base {
  // 投放日期 范围
  timeLimit: number = Date.now()
  // 投放时间
  date: Array<string> = []
  releaseDateType: any = 1;
  // 是releaseBeginDatee与 releaseEndDate 集合
  // releaseBeginAndEndDate: any = [Date.now(), Date.now()];
  releaseDate: [number, number] = [Date.now(), Date.now()];
  releaseBeginDate: string = '';
  releaseEndDate: string = '';
  releaseTimeType: any = 1;
  releaseBeginTime: any = '';
  releaseEndTime: any = '';
  openFirstDayBeginTime: boolean = false;
  firstDayBeginTime: any = undefined;
  // 出价方式
  bidMode: 'BID_MODE_OCPM' | 'BID_MODE_CPM' = 'BID_MODE_OCPM';
  // 出价类型
  bidScene: 'SMART_BID_TYPE_CUSTOM' | 'SMART_BID_TYPE_SYSTEMATIC' | undefined = 'SMART_BID_TYPE_CUSTOM'
  // 优化目标
  optimizationGoal: 'OPTIMIZATIONGOAL_ECOMMERCE_ORDER' | undefined = 'OPTIMIZATIONGOAL_ECOMMERCE_ORDER';
  // 是否深度优化
  // deepConversionSpec: 1 | 2 | undefined = undefined;
  // deepConversionType: string | undefined = 'DEEP_CONVERSION_WORTH';
  deepConversionType: 1 | 2 | undefined = 1;
  // 1-付费；2-下单ROI；3-下单ROI（原深度辅助优化）
  deepConversionGoal: 1 | 2 | 3 | undefined = undefined;
  // 优化方式 开启深度优化自动默认选择 深度优化目标
  deepOptimizationWay: any = '';
  deepOptimalWarn: any = 1;
  deepOptimalType: any = 1
  deepConversionExpectedRoi: any;
  bidAmount: any;
  // 一键起量
  autoAcquisitionEnabled: any = 0;
  autoAcquisitionBudget: any = 0;
  // 广告日预算 0 不限
  dailyBudget: any = 0
  name: any = '';
  get bidModeLabel() {
    if(this.bidMode === 'BID_MODE_CPM') return 'CPM'
    return 'oCPM'
  }



  constructor(options: any) {
    super();
    this.init(options);
    return this;
  }




}

export default SchedulePrice
